package nave.model;

import nave.Constants;

public class Explosion extends GameObject {
	
	/*
	 * Constants
	 */
	public static final float EXPLOSION_TIME = 1;
	
	/*
	 * Attributes
	 */
	private float aliveTime = 0;

	/*
	 * Constructors
	 */
	public Explosion (Spaceship s) {
		super(Constants.ID_EXPLOSION);
		
		this.position = s.getPosition();
		this.drawPoint = s.getDrawPositon();
	}
	
	/*
	 * Getters and Setters
	 */
	public float getAliveTime() {
		return aliveTime;
	}
	
	/*
	 * Public methods
	 */
	@Override
	public void update (float delta) {
		aliveTime += delta;
	}

	@Override
	public void placeOnStage() {}
}
